<?php

/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @category    ChinaWanderer
 * @package     Default
 * @author      Cheng Wei <berlios.o@gmail.com>
 * @version     $$Id: Bootstrap.php 20 2010-12-18 09:35:07Z cheng.wei $$
 * @copyright   Copyright (c) 2008 Evebit Inc. China (http://www.evebit.com)
 */

/**
 * Bootstrap for default module
 * 
 * @package     Default
 * @author      Cheng Wei <berlios.o@gmail.com>
 * @version     $$Id: Bootstrap.php 20 2010-12-18 09:35:07Z cheng.wei $$
 */
class Default_Bootstrap extends Evebit_Application_Module_Bootstrap
{
    /**
     *
     */
    public function _initLocale ()
    {
    	$this->getApplication()->bootstrap('translate');
        $session = Evebit_Application::getSession();
        $locale = $session->getLocale();
        if ($locale) {
            $session->setLocale($locale);
        }
    }
}
